﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.oracle
{
	// Token: 0x0200012F RID: 303
	public class TOracleCreateDirectoryStmt : TCustomOracleSqlStmt
	{
		// Token: 0x060009C6 RID: 2502 RVA: 0x00303D77 File Offset: 0x00301F77
		public TOracleCreateDirectoryStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstoraclecreatedirectory;
		}

		// Token: 0x060009C7 RID: 2503 RVA: 0x00303D8C File Offset: 0x00301F8C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TCreateDirectorySqlNode tcreateDirectorySqlNode = (TCreateDirectorySqlNode)this.rootNode;
			this.directoryName = tcreateDirectorySqlNode.DirectoryName;
			base.DatabaseObjects.Add(this.directoryName);
			this.path = tcreateDirectorySqlNode.Path;
			return 0;
		}

		// Token: 0x170001B8 RID: 440
		// (get) Token: 0x060009C8 RID: 2504 RVA: 0x00303DE1 File Offset: 0x00301FE1
		// (set) Token: 0x060009C9 RID: 2505 RVA: 0x00303DE9 File Offset: 0x00301FE9
		public virtual TObjectName DirectoryName
		{
			get
			{
				return this.directoryName;
			}
			set
			{
				this.directoryName = value;
			}
		}

		// Token: 0x170001B9 RID: 441
		// (get) Token: 0x060009CA RID: 2506 RVA: 0x00303DF2 File Offset: 0x00301FF2
		// (set) Token: 0x060009CB RID: 2507 RVA: 0x00303DFA File Offset: 0x00301FFA
		public virtual TConstant Path
		{
			get
			{
				return this.path;
			}
			set
			{
				this.path = value;
			}
		}

		// Token: 0x060009CC RID: 2508 RVA: 0x00303E03 File Offset: 0x00302003
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060009CD RID: 2509 RVA: 0x00303E13 File Offset: 0x00302013
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001257 RID: 4695
		private TObjectName directoryName;

		// Token: 0x04001258 RID: 4696
		private TConstant path;
	}
}
